package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.common.DeleteRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionAppearanceAddRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionAppearanceQueryRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionAppearanceUpdateRequest;
import com.yupi.springbootinit.model.entity.QaInspectionAppearance;

import java.util.List;

/**
* @author Administrator
* @description 针对表【qaInspectionAppearance(外观检验条目)】的数据库操作Service
* @createDate 2024-02-25 17:04:02
*/
public interface QaInspectionAppearanceService extends IService<QaInspectionAppearance> {

    /**
     * 添加
     *
     * @param qaInspectionAppearanceAddRequest
     * @return
     */
    long addQaInspectionAppearance(QaInspectionAppearanceAddRequest qaInspectionAppearanceAddRequest);

    /**
     * 删除
     *
     * @param deleteRequest
     * @return
     */
    boolean deleteQaInspectionAppearance(DeleteRequest deleteRequest);

    /**
     * 更新
     *
     * @param qaInspectionAppearanceUpdateRequest
     * @return
     */
    boolean updateQaInspectionAppearance(QaInspectionAppearanceUpdateRequest qaInspectionAppearanceUpdateRequest);

    /**
     * 根据 id 获取
     *
     * @param id
     * @return
     */
    QaInspectionAppearance getQaInspectionAppearanceById(long id);

    /**
     * 获取列表
     *
     * @param qaInspectionAppearanceQueryRequest
     * @return
     */
    List<QaInspectionAppearance> listQaInspectionAppearance(QaInspectionAppearanceQueryRequest qaInspectionAppearanceQueryRequest);

    /**
     * 分页获取列表
     *
     * @param qaInspectionAppearanceQueryRequest
     * @return
     */
    Page<QaInspectionAppearance> listQaInspectionAppearanceByPage(QaInspectionAppearanceQueryRequest qaInspectionAppearanceQueryRequest);
}